/*
 * Quadratic.h
 *
 *  Created on: 2009/02/06
 *      Author: Yongshik Cho
 */

#ifndef QUADRATIC_H_
#define QUADRATIC_H_

class Quadratic
{
public:
	inline static void easeIn(const float t, const float b, const float c, const float d, float& r)
	{
		float t1 = t/d;
		r = c * t1 * t + b;
	}
	inline static void easeOut(const float t, const float b, const float c, const float d, float& r)
	{
		float t1 = t/d;
		r = c * t1 * t + b;
	}
	inline static void easeInOut(const float t, const float b, const float c, const float d, float& r)
	{
		float t1 = t/d;
		r = c * t1 * t + b;
	}
};

#endif /* QUADRATIC_H_ */
